#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk

JAVA_HOME                  := /usr/lib/jvm/java-gcj
DEB_JARS                   := ant-nodeps 
DEB_ANT_BUILD_TARGET       := make
DEB_ANT_CLEAN_TARGET       := clean-API clean
BUILDDIR                   := dist
DEB_INSTALL_CHANGELOGS_ALL := CHANGE.txt

install/libjrosetta-java::
	install -m 644 -D $(BUILDDIR)/jrosetta-engine.jar debian/libjrosetta-java/usr/share/java/jrosetta-engine-$(DEB_UPSTREAM_VERSION).jar
	ln -s jrosetta-engine-$(DEB_UPSTREAM_VERSION).jar debian/libjrosetta-java/usr/share/java/jrosetta-engine.jar
	install -m 644 -D $(BUILDDIR)/jrosetta-API.jar debian/libjrosetta-java/usr/share/java/jrosetta-API-$(DEB_UPSTREAM_VERSION).jar
	ln -s jrosetta-API-$(DEB_UPSTREAM_VERSION).jar debian/libjrosetta-java/usr/share/java/jrosetta-API.jar

get-orig-source:
	-uscan --upstream-version 0 --rename	
